package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbProductTypeService;
import com.gidgabs.modules.dao.TbProductTypeDao;
import com.gidgabs.modules.entity.TbProductTypeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbProductTypeServiceImpl implements TbProductTypeService {
	@Autowired
	private TbProductTypeDao productTypeDao;
	
	@Override
	public TbProductTypeEntity queryObject(Integer id){
		return productTypeDao.queryObject(id);
	}
	
	@Override
	public List<TbProductTypeEntity> queryList(Map<String, Object> map){
		return productTypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return productTypeDao.queryTotal(map);
	}
	
	@Override
	public void save(TbProductTypeEntity productType){
		productTypeDao.save(productType);
	}
	
	@Override
	public void update(TbProductTypeEntity productType){
		productTypeDao.update(productType);
	}
	
	@Override
	public void delete(Integer id){
		productTypeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		productTypeDao.deleteBatch(ids);
	}

	@Override
	public List<TbProductTypeEntity> queryByObject(TbProductTypeEntity tbProductTypeEntity) {
		return productTypeDao.queryByObject(tbProductTypeEntity);
	}

}
